package com.chinaisafe.feign.user;


import com.chinaisafe.base.common.vo.Answer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 *
 * RemoteUserRoleService
 * Description：
 * 用户角色服务
 * @author tby
 * @date 2024/7/16 15:33
 */
@FeignClient(contextId = "remoteUserRoleService",value = "user-service")
public interface RemoteUserRoleService {


    /**
     * 查询用户角色
     *
     * @param sysUserId
     * @return Answer<List<Long>>
     * @author tby
     * @date 2024/7/16 11:03
     */
    @GetMapping("role")
    Answer<List<Long>> queryUserRole(Long sysUserId);

    /**
     * 获取用户拥有的权限编码
     *
     * @param sysUserId
     * @return Answer<List<String>>
     * @author tby
     * @date 2024/7/16 11:04
     */
    @GetMapping("permission")
    Answer<List<String>> queryUserPermission(Long sysUserId);
}
